package net.oschina.victor.liu.lemon.service;

import java.util.List;

import org.springframework.data.domain.Page;

import net.oschina.victor.liu.lemon.common.MessageException;
import net.oschina.victor.liu.lemon.entity.Role;

public interface RoleService {

	public Boolean save(Role role) throws MessageException;

	public Boolean update(Role role) throws MessageException;

	public Boolean delete(Long id) throws MessageException;

	public Role getRole(Long id);

	public Page<Role> list(String keyword, int pageNo, int pageSize);

	public List<Role> listAll();
}
